package org.apache.cayenne.extentions.modeler;

import org.apache.cayenne.di.Inject;
import org.apache.cayenne.extentions.modeler.action.PluginExitAction;
import org.apache.cayenne.extentions.modeler.action.PluginProjectAction;
import org.apache.cayenne.modeler.action.DefaultActionManager;
import org.apache.cayenne.modeler.Application;
import org.apache.cayenne.modeler.action.ExitAction;
import org.apache.cayenne.modeler.action.ProjectAction;

public class PluginActionManager extends DefaultActionManager {
    
	
	public PluginActionManager( @Inject PluginApplication application) {
		super(application);
		PluginExitAction exitAction = new PluginExitAction();
		PluginProjectAction projectAction = new PluginProjectAction(application);
		actionMap.put(exitAction.getClass().getName(), exitAction);
		actionMap.put(projectAction.getClass().getName(),projectAction);
	}

//	@Override
//	protected ExitAction createExitAction(Application application) {
//		return new PluginExitAction(application);
//	}
//
//	@Override
//	protected ProjectAction createProjectAction(Application application) {
//		return new PluginProjectAction(application);
//	}
}